<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>订单打印</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<style type="text/css">
	*{
		font-size: 12px;
	}
	table{width: 100%;}
	.right *{
		text-align: right;
	}

	.right span{
		margin-right: 6em;
		line-height: 60px;
	}
	.table{
		border-top: solid 1px black;
		border-left: solid 1px black;
	}
	.table td{
		border-right: solid 1px black;
		border-bottom: solid 1px black;
	}
	.text-right{
		text-align: right;
	}
	.text-center{
		text-align: center;
	}
</style>

<style   media="print">   
  .Noprint   {   DISPLAY:   none;}   
  .PageNext   {   PAGE-BREAK-AFTER:   always   }
</style>  
</head>
<body>
	{volist name='list' id='v'}
	<h1 style="text-align: center;margin: 0;font-size: 18px;">订单信息</h1>
	<table>
		<tr>
			<td>购货人：{$v['u_phone']}</td>
			<td>下单时间：{$v.create_time}</td>
			<td>支付方式：{$v.pay_platform}</td>
			<td>订单编号：{$v.order_no}</td>
		</tr>
		<tr>
			<td>付款时间：{$v.pay_time}</td>
			<td>配送时间：{:date('Y-m-d')}</td>
			<td>业务员：{$v.agent_name}</td>
			<td>电话：{$v.agent_phone}</td>
		</tr>
		<tr>
			<td>收货地址：{$v.receiver_pcd}{$v.receiver_address}</td>
			<td>收货人：{$v.receiver_name} {$v.shop_name}</td>
			<td colspan="2">电话：{$v.receiver_mobile}</td>
		</tr>
		<tr>
			<td>配送员：{$v.delivery_name}</td>
			<td>电话：{$v.delivery_phone}</td>
		</tr>
	</table>
    <table cellpadding="0" cellspacing="0" class="table">
		<tr>
			<td class="text-center">商品名称</td>
			<td class="text-center">规格</td>
			<td  class="text-center">单价</td>
			<td class="text-center">数量</td>
			<td class="text-center">小计</td>
		</tr>
		{volist name="v['list']" id='vo'}
		<tr>
			<td>{$vo.brand_name}*{$vo.goods_name}</td>
			<td>{$vo.goods_specval_name}</td>
			<td class="text-right">¥ {$vo.price}</td>
			<td class="text-center">{$vo.num}</td>
			<td class="text-right">¥ {:number_format($vo['price']*$vo['num'],2)}</td>
		</tr>
		{/volist}
		<tr>
			<td colspan="3">统计</td>
			<td class="text-center">{$v.totalnum}</td>
			<td class="text-right">¥ {$v.goods_money}</td>
		</tr>
	</table>
	<div class="right">
		<div>订单总金额：¥ {$v['order_money']}</div>
		<div>含订单配送费：¥ {:number_format($v['shipping_money'],2)}</div>
		<div>
			<span><u>验收时请仔细核对商品规格数量信息后签字确认</u> 验收人签字：</span>
			<span>财务审核：</span>
			<span>配送员签字：</span>
		</div>
	</div>
	<div>
		<div>发货备注：</div>
		<div>支付备注：</div>
		<div style="font-size: 9px;">{$Think.config.sites.company_name}&nbsp;&nbsp;&nbsp;&nbsp;地址：{$Think.config.sites.company_address}&nbsp;电话：{$Think.config.sites.company_phone}</div>
		<div style="font-size: 9px;">打印时间：{:date('Y-m-d H:i:s')}&nbsp;操作者：{$user['name']}</div>
	</div>
	<div class="PageNext"></div>
	{/volist}
    <script type="text/javascript">
    	window.onload = function(){
    		window.print();
    		setTimeout(function(){
    			window.parent.closeIfram();
    		},1000)
    	}
    </script>
</body>
</html>